package com.caipin.domain.chevereto;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:19
 * @Description: TODO
 */
public class CheveretoResult {
    private int status_code;

    private SuccessBean success;

    private ErrorBean error;

    private ImageBeanX image;

    private String status_txt;

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public void setSuccess(SuccessBean success) {
        this.success = success;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public void setImage(ImageBeanX image) {
        this.image = image;
    }

    public void setStatus_txt(String status_txt) {
        this.status_txt = status_txt;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.chevereto.CheveretoResult))
            return false;
        com.caipin.domain.chevereto.CheveretoResult other = (com.caipin.domain.chevereto.CheveretoResult)o;
        if (!other.canEqual(this))
            return false;
        if (getStatus_code() != other.getStatus_code())
            return false;
        Object this$success = getSuccess(), other$success = other.getSuccess();
        if ((this$success == null) ? (other$success != null) : !this$success.equals(other$success))
            return false;
        Object this$error = getError(), other$error = other.getError();
        if ((this$error == null) ? (other$error != null) : !this$error.equals(other$error))
            return false;
        Object this$image = getImage(), other$image = other.getImage();
        if ((this$image == null) ? (other$image != null) : !this$image.equals(other$image))
            return false;
        Object this$status_txt = getStatus_txt(), other$status_txt = other.getStatus_txt();
        return !((this$status_txt == null) ? (other$status_txt != null) : !this$status_txt.equals(other$status_txt));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.chevereto.CheveretoResult;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        result = result * 59 + getStatus_code();
        Object $success = getSuccess();
        result = result * 59 + (($success == null) ? 43 : $success.hashCode());
        Object $error = getError();
        result = result * 59 + (($error == null) ? 43 : $error.hashCode());
        Object $image = getImage();
        result = result * 59 + (($image == null) ? 43 : $image.hashCode());
        Object $status_txt = getStatus_txt();
        return result * 59 + (($status_txt == null) ? 43 : $status_txt.hashCode());
    }

    public String toString() {
        return "CheveretoResult(status_code=" + getStatus_code() + ", success=" + getSuccess() + ", error=" + getError() + ", image=" + getImage() + ", status_txt=" + getStatus_txt() + ")";
    }

    public int getStatus_code() {
        return this.status_code;
    }

    public SuccessBean getSuccess() {
        return this.success;
    }

    public ErrorBean getError() {
        return this.error;
    }

    public ImageBeanX getImage() {
        return this.image;
    }

    public String getStatus_txt() {
        return this.status_txt;
    }
}

